package com.gistone.commis.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;


import java.util.Date;
@Setter
@Getter
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class PublicFund {
    private Integer pfId;

    private Integer communityId;
    private  Community community;

    private String communityName;

    private Integer departId;
    private  Depart depart;

    private Integer userId;
    private  User user;
    private String personName;

    private String pfTitle;
    @JsonFormat(pattern="yyyy-MM-dd")
    private Date pfTime;

    private String attachpath1;

    private String attachpath2;

    private String attachpath3;

    private Integer isOff;

    private Integer isDelete;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date registerTime;

    private Integer submitNumber;

    private String field2;

    public PublicFund(Integer pfId, Integer communityId, String communityName, Integer departId, Integer userId, String personName, String pfTitle, Date pfTime, String attachpath1, String attachpath2, String attachpath3, Integer isOff, Integer isDelete, Date registerTime, Integer submitNumber, String field2) {
        this.pfId = pfId;
        this.communityId = communityId;
        this.communityName = communityName;
        this.departId = departId;
        this.userId = userId;
        this.personName = personName;
        this.pfTitle = pfTitle;
        this.pfTime = pfTime;
        this.attachpath1 = attachpath1;
        this.attachpath2 = attachpath2;
        this.attachpath3 = attachpath3;
        this.isOff = isOff;
        this.isDelete = isDelete;
        this.registerTime = registerTime;
        this.submitNumber = submitNumber;
        this.field2 = field2;
    }

}